This has been discussed in bug 541009.
#include "config.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkhbox.h"
#include "gtkorientable.h"
* spacing, width, and alignment of #GtkHBox children.
*
* All children are allocated the same height.
+ *
+ * GtkHBox has been deprecated, use #GtkBox instead.
*/
* Creates a new #GtkHBox.
*
* Returns: a new #GtkHBox.
+ *
+ * Deprecated: 3.2: Use gtk_box_new() with %GTK_ORIENTATION_HORIZONTAL instead
*/
GtkWidget *
gtk_hbox_new (gboolean homogeneous,
G_BEGIN_DECLS
+#ifndef GTK_DISABLE_DEPRECATED
+
#define GTK_TYPE_HBOX (gtk_hbox_get_type ())
#define GTK_HBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBOX, GtkHBox))
#define GTK_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBOX, GtkHBoxClass))
GtkWidget * gtk_hbox_new (gboolean homogeneous,
gint spacing);
+#endif
+
G_END_DECLS
#endif /* __GTK_HBOX_H__ */
#include "config.h"
#include "gtkorientable.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkvbox.h"
* spacing, height, and alignment of #GtkVBox children.
*
* All children are allocated the same width.
+ *
+ * GtkVBox has been deprecated, use #GtkBox instead.
*/
G_DEFINE_TYPE (GtkVBox, gtk_vbox, GTK_TYPE_BOX)
* Creates a new #GtkVBox.
*
* Returns: a new #GtkVBox.
+ *
+ * Deprecated: 3.2: Use gtk_box_new() with %GTK_ORIENTATION_VERTICAL instead
*/
GtkWidget *
gtk_vbox_new (gboolean homogeneous,
G_BEGIN_DECLS
+#ifndef GTK_DISABLE_DEPRECATED
+
#define GTK_TYPE_VBOX (gtk_vbox_get_type ())
#define GTK_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBOX, GtkVBox))
#define GTK_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass))
GtkWidget * gtk_vbox_new (gboolean homogeneous,
gint spacing);
+#endif
+
G_END_DECLS
#endif /* __GTK_VBOX_H__ */